<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet
	version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:output
		encoding="utf-8"
		indent="yes"
		doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
		omit-xml-declaration="yes"
		method="xml" />
	
	<xsl:param name="userGroup" select="/data/@user-group" />
	<xsl:param name="userId" select="/data/@user-id" />
	<xsl:param name="module" select="/data/@module" />
	<xsl:param name="method" select="/data/@method" />
	<xsl:param name="baseURI" select="/data/@base-uri" />
	<xsl:param name="pageTitle" select="/data/@title" />
	
	<!-- Meta-теги стрианицы -->
	<xsl:template name="meta-head">
		<link href="{$baseURI}/favicon.ico" type="image/ico" rel="icon" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		
		<script type="text/javascript">
		<xsl:text>var baseURI = "</xsl:text>
		<xsl:value-of select="$baseURI" />
		<xsl:text>";</xsl:text>
		</script>
		
		<script type="text/javascript" src="{$baseURI}/js/jQuery.js" />
		<script type="text/javascript" src="{$baseURI}/js/cms.js" />
		<script type="text/javascript" src="{$baseURI}/js/messages.js" />
		<link rel="stylesheet" href="{$baseURI}/css/all.css" type="text/css" media="all" />
		<link rel="stylesheet" href="{$baseURI}/css/short.css" type="text/css" media="all" />
	</xsl:template>
	
	<!-- Logo -->
	<xsl:template name="logo">
		<div id="logo">
			<a href="{$baseURI}/">
				<img src="{$baseURI}/images/logo.png" alt="Explay CMS Demo" />
			</a>
		</div>
	</xsl:template>
	
	<!-- Сообщение -->
	<xsl:template match="message">
		<div class="system-message"><xsl:value-of select="." /></div>
	</xsl:template>
	
	<!-- Сообщение об ошибке -->
	<xsl:template match="error">
		<div class="system-error"><xsl:value-of select="." /></div>
	</xsl:template>

</xsl:stylesheet>